/*
* $Id: SectionItem.h 157 2010-09-29 19:15:28Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Volokitin Alexey
* All rights reserved
*
*/
#ifndef _SECTION_ITEM_H_
#define _SECTION_ITEM_H_

#include "EditorItem.h"

class CButtonDraw;
interface IDrawer;

class CSectionItem : public CEditorItem
{
	static const int m_sizefont = 19;
	CFont* m_pFont;
	CButtonDraw* m_pButton;
	IDrawer* m_pDrawer;
protected:
	virtual void Resize();
public:
	CSectionItem(const std::tstring& strName, IDrawer* pDrawer, int nId);
	virtual ~CSectionItem();
public:
	virtual void Paint(CDC* dc);
	virtual void SetPosY(int nPosY);
	virtual bool ProcessMouse(unsigned int nButton, CPoint pos, int param);
	virtual bool ProcessKey(unsigned int nChar, byte stateSysKey);
	virtual bool WillActive();
	virtual void Activate(bool bActive);
	void AddButton(const std::tstring& strName);
};

#endif/*_SECTION_ITEM_H_*/